﻿Imports System
Imports System.Workflow.ComponentModel.Compiler

Namespace System.Workflow.Activities
    Public Class HandleExternalEventActivityValidator
        Inherits ActivityValidator
        ' Methods
        Public Overrides Function Validate(ByVal manager As ValidationManager, ByVal obj As Object) As ValidationErrorCollection
            If Not TypeOf obj Is HandleExternalEventActivity Then
                Throw New ArgumentException(SR.GetString("Error_UnexpectedArgumentType", New Object() { GetType(HandleExternalEventActivity).FullName }), "obj")
            End If
            Dim errors As ValidationErrorCollection = MyBase.Validate(manager, obj)
            errors.AddRange(CorrelationSetsValidator.Validate(manager, obj))
            errors.AddRange(ParameterBindingValidator.Validate(manager, obj))
            Return errors
        End Function

    End Class
End Namespace

